//
//  FeaturedThreeRootClass.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/08/30
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "FeaturedThreeRootClass.h"
#import "FeaturedThreeData.h"

@implementation FeaturedThreeRootClass

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<FeaturedThreeData *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FeaturedThreeData *data = [FeaturedThreeData modelWithDic:dic];
            [array addObject:data];
        }
        self.data = array;
    }
}

@end
